﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Seagull.Configuration
{
    public class DataReadConfig
    {
        [XmlAttribute("数据帧时间戳偏移允许值毫秒")]
        [DisplayName("数据帧时间戳偏移允许值毫秒")]
        public int TimestampDeltaQuotaMilliseconds { get; set; }

        [XmlAttribute("数据值上界")]
        [DisplayName("数据值上界")]
        public byte MaxDataValue { get; set; }

        [XmlAttribute("数据值下界")]
        [DisplayName("数据值下界")]
        public byte MinDataValue { get; set; }

        [XmlAttribute("相位帧有效最小帧数")]
        [DisplayName("相位帧有效最小帧数")]
        public int MinimumFramesToConfirmPhaseStartPos { get; set; }

        [XmlAttribute("无数据报警时间长度秒")]
        [DisplayName("无数据报警时间长度秒")]
        public int NoRealtimeDataAlertDurationSeconds { get; set; }

        [XmlAttribute("报警脉冲个数")]
        [DisplayName("报警脉冲个数")]
        public int QuotaWarningMinCount { get; set; }
    }
}
